/** 
 * 请求的方法
 */
import axios from "axios"
import base from './base'
const qs = require('querystringify')


const api = {   
    getLogin(params){
        return axios.post(base.login,qs.stringify(params))
    },
    
    /**
     * 课程列表
     */
    getGoodsList(params){  //page 页数
        return axios.get(base.goodsList,{
            params
        })
    },
    getSearch(params){
        return axios.get(base.search,{params})
    },
    addClass(params){
        return axios.get(base.addClass,{
            params
        })
    },
    deleteClass(params){
        return axios.get(base.deleteClass,{
            params
        })
    },
    getStudentList(params){
        return axios.get(base.studentList,{
            params
        })
    },
    studentSearch(params){
        return axios.get(base.studentSearch,{
            params
        })
    },
    AddStuinfo(params){
        return axios.get(base.addStuinfo,{
            params
        })
    },
    deletestuinfo(params){
        return axios.get(base.deletestuinfo,{
            params
        })
    },
    getTeachList(params){
        return axios.get(base.teacherList,{
            params
        })
    },
    TeachSearch(params){
        return axios.get(base.teacherSearch,{
            params
        })
    },
    Addtinfo(params){
        return axios.get(base.addtinfo,{
            params
        })
    },
    deletetinfo(params){
        return axios.get(base.deletetinfo,{
            params
        })
    },
    
}
export default api 